package boot.spring.设计模式.桥接模式;

public abstract class Shape {
    private Drawing _dp;

    Shape(Drawing _dp){
        this._dp = _dp;
    }

    public void drawLine(double x1, double x2, double y1, double y2){
        System.out.println("boot.spring.设计模式.桥接模式.Shape.drawLine");
        _dp.drawLine(x1, x2, y1, y2);
    }


    public void drawCricle(double x1, double x2, double r){
        System.out.println("boot.spring.设计模式.桥接模式.Shape.drawCricle");
        _dp.drawCricle(x1, x2, r);
    }

}
